//
//  StyListModel.m
//  PerfectWorld
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "StyListModel.h"
#import "Professionals.h"
@implementation StyListModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"professionals"]) {
        NSMutableArray<Professionals *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Professionals * professionals = [Professionals modelWithDic:dic];
            [array addObject:professionals];
        }
        _professionals = array;
    }
}

@end
